export function isPass(rule, value, callback) {
    let blend = /[A-Za-z0-9_]/;
    let chinese =/[\u4e00-\u9fa5]/;
    if (value == '' || value == undefined || value == null) {
        callback();
    } else {
        if ((!blend.test(value)) && value != '' && chinese.test(value)) {

        callback(new Error('密码格式不正确'));
    }else {
            callback();
     }
    }

}

// ruoyi
/**
 * @param {string} path
 * @returns {Boolean}
 */
export function isExternal(path) {
    return /^(https?:|mailto:|tel:)/.test(path)
}


